﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/Styles/admin-style.css")"/>

<!--HOME-->
<link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/Styles/admin-index.css")"/>
<!--ADD NEW PRODUCT-->

<link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/Styles/admin-content.css")"/>
<!--ckeditor-->

<title>@ViewBag.Title</title>
<script type="text/javascript" src="@Url.Content("~/Scripts/scripts/jquery.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/scripts/admin-app.js")"></script>


<link rel="stylesheet" type="text/css" href="@Url.Content("~/Scripts/gldatepicker.v1.3/css/android.css")" />
<script type="text/javascript" src="@Url.Content("~/Scripts/gldatepicker.v1.3/js/glDatePicker.js")"></script>

</head>

<body>
	<div class="wrapper">
        <div class="main">
            <div class="header">
                <div class="title">
                    @ViewBag.Title
                </div>
                <div class="navigation">
                    <a href="@Url.Content("~/")">Site home</a> |
                    <a href="#">Help</a> |
                    <a href="@Url.Content("~/member/profile")">Admin Profile</a>|
                    <span>Welcome @ViewBag.Name</span>|
                    <a href="@Url.Content("~/administrator/members/logout")">Logout</a>

                </div>
                <div class="banner">
                
                </div>
            </div><!--#END header-->
            <div class="content">
			    <div class="navigation_content">
                @{
                    var listMenuMain = (ICollection<eProjectsSemIII.Models.Menus>)ViewBag.listMenuMain;
                    var listParentMenu = listMenuMain.Where(m => m.ParentID == -1);
                }
                @foreach (var parentMenu in listParentMenu)
                {
                    <a href="@Url.Content("~/administrator/" + parentMenu.Controller + "/" + parentMenu.Action)" class="item_navigation_content">
                        <span>
                    	    <span class='logo_item_navigation'>
                                <img alt="" src="@Url.Content("~/Content/Images/admins/menu-icon/"+parentMenu.Icon)" />
                            </span>
                            <span class='text_item_navigation'>
                                @parentMenu.Name
                            </span>
                        </span> 
                    </a>
                    var listChildMenu = listMenuMain.Where(m => m.ParentID == parentMenu.ID && m.Display == true);
                    <div class='item_navigation_son'>
                        @foreach (var childMenu in listChildMenu)
                        {
                        <div class='item_son_navigation_son'>
                            <a href="@Url.Content("~/administrator/" + childMenu.Controller + "/" + childMenu.Action)">
                                <div class="item_son_name">@childMenu.Name</div>
                                <div class="item_son_des">@childMenu.Description</div>
                            </a>
                        </div>
                        }
                    </div>
                }
                </div>
				<div class="main_content">
                @if (Session["errorContorllerAction"] != null)
                {
                    <div class="path_menu">
                        <span class="error-controller-action">This action no have in your action. Please contact administrator for this issue, thank!</span>
                    </div>
                    Session["errorContorllerAction"] = null;
                }
                @RenderBody()                	
                </div><!--#END main_content-->
            </div><!--#END content-->
        </div><!--#END main-->
        <div class="footer">
			<span class="name">:: Tình Phong Pro ::</span> <span class="email"> sonld.hv@gmail.com</span>
        </div><!--#END footer-->
    </div><!--#END wrapper-->
</body>
</html>
